# encoding: utf-8
from typing import Optional, Any

from pydantic import BaseModel, Field

from .queryData import SupplyDataBase


class CompatibleData(BaseModel):
    id: str = Field(description='数据ID')
    name: str = Field(description='数据的文件名或者query')
    origin_data: Optional[SupplyDataBase] = Field(default=None, description="原始数据")  # 与id或者抽取的query是一对多的关系
    option: Optional[bool] = Field(default=True, description='是否有可以获取的数据')

